package com.ruoyi.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 物料产品分类目录对象 master_data_product_catalog
 *
 * @author honor
 * @date 2025-05-09
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "master_data_product_catalog")
@Data
public class ProductCatalog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    private String tenantId;

    private String name;

    private String parentCatalogId;

    private String productOrMaterial;

    private String sortNo;

    private Boolean enableFlag;

    private Boolean isDeleted;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createdAt;

    private Long createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updatedAt;

    private Long updatedBy;

}